{% extends "activities/activitiesbase.html" %}

{% comment %}
#    Copyright 2012 New Mexico EPSCoR
#
#    This file is part of Teacher's P.E.T.
#
#    Teacher's P.E.T. is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    Teacher's P.E.T. is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with Teacher's P.E.T..  If not, see <http://www.gnu.org/licenses/>.
{% endcomment %}

{% block subtitle %} - {{Activity.title}} Question {{id}}{% endblock subtitle %}

{% block content %}
    <table class="activities">
    <tr>
    <td>
	{% if Questions %}
	<div class="form_container activities_content">
	    <form action="." method="post">{% csrf_token %}
	    {% for question in Questions %}
		<hr>
		<h3>Question {{question.question_number}}:</h3>
		{% render question %}
	    {% endfor %}
	    
	    {% if Questions.has_form %}
		<br>
		<button type="submit" class="button SaveButton" name="Save" value="Save">Submit</button>
		<br>
		<a href="{{ActivityLink}}">Return to Activity</a>
	    {% endif %}
	    </form>
	</div>
	{% endif %}
    </td>
    </tr>
    </table>
{% endblock content %}